//
//  YXLabel.m
//  YXTheme_Example
//
//  Created by GMS on 2020/8/19.
//  Copyright © 2020 Arthur. All rights reserved.
//

#import "YXLabel.h"

@implementation YXLabel

- (void)theme_didChanged {
    [super theme_didChanged];
    self.textColor = [YXThemeManager colorWithColorName:self.themeTextColor];
    
    
    
}

- (void)setThemeTextColor:(NSString *)themeTextColor {
    _themeTextColor = themeTextColor;
    self.textColor = [YXThemeManager colorWithColorName:themeTextColor];
    [self theme_registChangeNotification];
}


- (void)dealloc {
    
    NSLog(@"销毁了");
    [[NSNotificationCenter defaultCenter] removeObserver:@"YXThemeChangedNotification"];
}

@end
